<%
    #Die Klasse AY stellt alle Methoden Verfügung, die du für deine App benötigst.

    require 'aboutyou-sdk'
    ay = AY.new(100, '3ed93394c2b5ebd12c104b177b928ad0')

    product_result = ay.fetch_products_by_ids(
        [552223, 551937],
        [AboutYou::SDK::Criteria::ProductFields::DEFAULT_IMAGE]
    )
    products = product_result.products

    products.each do |id, product|%>
        <%= product.name %>
        <%if product.default_image %>
            <%=product.default_image.url%>
        <%end
    end
%>